(function( pd ) {
	if ( pd.afc !== undefined ) {
		$.error( '$.pd.afc namespace already used' );
		return false;
	}
	
	pd.afc			= {};	// namespace
	var backendUrl	= null;	// backend URL
	
	// set AFC backend URL
	pd.afc.setBackendUrl = function(url) {
		backendUrl = url;
	};
	
	// call method
	pd.afc.call = function(funcName, data, callback, returnType) {
		$.post(
			backendUrl + "?funcName=" + funcName,
			data,
			callback,
			returnType
		);
	};
})( jQuery.pd );